<?php
$CI = & get_instance();
        $CI->load->library('utilidades');
?>
<table>
    <tr>
        <td colspan="20" align="center">
            <span  style="text-align: center"><?php echo utf8_decode('INSTITUTO TECNOLÓGICO SUPERIOR "SUDAMERICANO"')?></span>
        </td>  
    </tr>
    <tr>
        <td  colspan="20" align="center">
            <span  style="text-align: center"><?php echo utf8_decode('ASISTENCIA DIARIA DE ESTUDIANTES')?></span>
        </td>        
    </tr>
    <tr>
        <td  colspan="20" align="center">
            <span  style="text-align: center"><?php echo utf8_decode('<b>PERIODO ACADÉMICO: </b>' . $periodo[0]["descripcion_lec"])?></span>
        </td>        
    </tr>
    <tr>
        <td  colspan="20">
            <?php echo '</br>';?>
        </td>    
    </tr>
    <tr>
        <td  colspan="10">
            <?php echo utf8_decode('<b>CARRERA: </b> ' . $carrera)?>
        </td>
        <td colspan="10">
            <?php echo utf8_decode('<b>ASIGNATURA: </b> ' . $materia)?>
        </td>
    </tr>
    <tr>
        <td colspan="10">
            <?php echo utf8_decode('<b>CICLO: </b> ' . $ciclo. '. <b>SECCIÓN: </b>' . $seccion)?>
        </td>
        <td colspan="10">
            <?php echo utf8_decode('<b>DOCENTE: </b>' . $docente[0]["apellido_pers"] . ' ' . $docente[0]["nombre_pers"])?>
        </td>
    </tr>
    <tr>
        <td colspan="20">
            <?php echo '</br>';?>
        </td>    
    </tr>    
</table>
<table border='1'>
    <thead>
        <tr>
            <th>
                Nro
            </th>
            <th colspan="3">
                <?php echo utf8_decode(strtoupper($ciclo . ' de ' . $carrera . ' ' . $periodo[0]["descripcion_lec"]))?>
            </th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
            <th>THD</th>
            <th>THR</th>
            <th>TI</th>
        </tr>
    </thead>
    <tbody>
        <?php
            $cont = 1;
            foreach ($listaA as $lista){
                $estadoM = $CI->utilidades->verificarEstadoMatricula($lista['ide_cur']);
                            $arras = $estadoM["A"];
                            $retir = $estadoM["R"];
                            $estado = ($retir!='')?$retir:$arras;
                            $estado=($estado!='')?'('.$estado.')':'';
                            $css = '';
                            if($estado=='(A)'){$css= 'class="arrastre"';}else if($estado=='(R)'){$css= 'class="retirado"';}
                echo '<tr>';
                echo '<td>'.$cont.'</td>';
                echo '<td colspan="3">'.utf8_decode($lista["apellido_pers"] . ' ' . $lista["nombre_pers"]).' '.$estado.'</td>';
                
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '<td></td>';
                echo '</tr>';
                $cont++;
            }
        ?>
    </tbody>
</table>
<table>
    <tr>
        <td colspan="20" align="center">
            
        </td>  
    </tr>
    <tr>
        <td  colspan="20" align="center">
            
        </td>        
    </tr>
    
    <tr>
        <td  colspan="10" align="center">
            <?php echo utf8_decode($rector)?>
        </td>
        <td colspan="10" align="center">
            <?php echo utf8_decode($docente[0]["apellido_pers"] . ' ' . $docente[0]["nombre_pers"])?>
        </td>
    </tr>
    <tr>
        <td  colspan="10" align="center">
            <?php echo utf8_decode('<b>RECTOR</b>')?>
        </td>
        <td colspan="10" align="center">
            <?php echo utf8_decode('<b>DOCENTE</b> ')?>
        </td>
    </tr>
</table>
